package com.example.takeaway.api;

import com.example.takeaway.common.R;
import com.example.takeaway.model.vo.ShopVO;
import com.example.takeaway.service.ShopService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * <p>
 * 店铺表 前端控制器
 * </p>
 *
 * @author 邢晨旭
 * @since 2023-10-12
 */
@RestController
@RequestMapping("/shop")
public class ShopApi {

    @Resource
    ShopService shopService;
    @GetMapping("/info")
    public R<ShopVO> getShopInfo() {
        return R.ok(shopService.getShopInfo());
    }
}
